package com.lgq.bean;

import javax.validation.constraints.Pattern;

public class Student {
    private Integer stuId;

    @Pattern(regexp = "(^[\u2E80-\u9FFF]{2,4})",message = "用户名必须是2-4为中文！")
    private String stuName;

    private String stuGender;

    private String stuNativepalce;

    private Integer iId;

    private Institute institute;

    public Institute getInstitute() {
        return institute;
    }

    public void setInstitute(Institute institute) {
        this.institute = institute;
    }

    public Student() {
    }

    public Student(Integer stuId, String stuName, String stuGender, String stuNativepalce, Integer iId) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuGender = stuGender;
        this.stuNativepalce = stuNativepalce;
        this.iId = iId;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName == null ? null : stuName.trim();
    }

    public String getStuGender() {
        return stuGender;
    }

    public void setStuGender(String stuGender) {
        this.stuGender = stuGender == null ? null : stuGender.trim();
    }

    public String getStuNativepalce() {
        return stuNativepalce;
    }

    public void setStuNativepalce(String stuNativepalce) {
        this.stuNativepalce = stuNativepalce == null ? null : stuNativepalce.trim();
    }

    public Integer getiId() {
        return iId;
    }

    public void setiId(Integer iId) {
        this.iId = iId;
    }
}